﻿using System;
using System.Runtime.Serialization;

namespace FU.Capstones.IMS.Services.Common.Respondents
{
    [DataContract(Namespace = InventoryConstants.ServiceNamespace, Name = "{0}Feedback")]
    public class SingleFeedback<T> : Feedback
    {
        [DataMember]
        public T Data { get; set; }

        public SingleFeedback(string message, bool isSuccessful, T data) : base (message, isSuccessful)
        {
            Data = data;
        }

        public SingleFeedback()
        {
            Data = default(T);
        }
    }
}
